﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000F49 RID: 3913
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueMagicLeaveScRsp : IMessage<RogueMagicLeaveScRsp>, IMessage, IEquatable<RogueMagicLeaveScRsp>, IDeepCloneable<RogueMagicLeaveScRsp>, IBufferMessage
	{
		// Token: 0x170031B5 RID: 12725
		// (get) Token: 0x0600AF8B RID: 44939 RVA: 0x001DAFE3 File Offset: 0x001D91E3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueMagicLeaveScRsp> Parser
		{
			get
			{
				return RogueMagicLeaveScRsp._parser;
			}
		}

		// Token: 0x170031B6 RID: 12726
		// (get) Token: 0x0600AF8C RID: 44940 RVA: 0x001DAFEA File Offset: 0x001D91EA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueMagicLeaveScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170031B7 RID: 12727
		// (get) Token: 0x0600AF8D RID: 44941 RVA: 0x001DAFFC File Offset: 0x001D91FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueMagicLeaveScRsp.Descriptor;
			}
		}

		// Token: 0x0600AF8E RID: 44942 RVA: 0x001DB003 File Offset: 0x001D9203
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicLeaveScRsp()
		{
		}

		// Token: 0x0600AF8F RID: 44943 RVA: 0x001DB00C File Offset: 0x001D920C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicLeaveScRsp(RogueMagicLeaveScRsp other) : this()
		{
			this.rogueTournCurSceneInfo_ = ((other.rogueTournCurSceneInfo_ != null) ? other.rogueTournCurSceneInfo_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600AF90 RID: 44944 RVA: 0x001DB058 File Offset: 0x001D9258
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicLeaveScRsp Clone()
		{
			return new RogueMagicLeaveScRsp(this);
		}

		// Token: 0x170031B8 RID: 12728
		// (get) Token: 0x0600AF91 RID: 44945 RVA: 0x001DB060 File Offset: 0x001D9260
		// (set) Token: 0x0600AF92 RID: 44946 RVA: 0x001DB068 File Offset: 0x001D9268
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicCurSceneInfo RogueTournCurSceneInfo
		{
			get
			{
				return this.rogueTournCurSceneInfo_;
			}
			set
			{
				this.rogueTournCurSceneInfo_ = value;
			}
		}

		// Token: 0x170031B9 RID: 12729
		// (get) Token: 0x0600AF93 RID: 44947 RVA: 0x001DB071 File Offset: 0x001D9271
		// (set) Token: 0x0600AF94 RID: 44948 RVA: 0x001DB079 File Offset: 0x001D9279
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600AF95 RID: 44949 RVA: 0x001DB082 File Offset: 0x001D9282
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueMagicLeaveScRsp);
		}

		// Token: 0x0600AF96 RID: 44950 RVA: 0x001DB090 File Offset: 0x001D9290
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueMagicLeaveScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.RogueTournCurSceneInfo, other.RogueTournCurSceneInfo) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600AF97 RID: 44951 RVA: 0x001DB0E0 File Offset: 0x001D92E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.rogueTournCurSceneInfo_ != null)
			{
				num ^= this.RogueTournCurSceneInfo.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600AF98 RID: 44952 RVA: 0x001DB135 File Offset: 0x001D9335
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600AF99 RID: 44953 RVA: 0x001DB13D File Offset: 0x001D933D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600AF9A RID: 44954 RVA: 0x001DB148 File Offset: 0x001D9348
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.Retcode);
			}
			if (this.rogueTournCurSceneInfo_ != null)
			{
				output.WriteRawTag(98);
				output.WriteMessage(this.RogueTournCurSceneInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600AF9B RID: 44955 RVA: 0x001DB1A4 File Offset: 0x001D93A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.rogueTournCurSceneInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueTournCurSceneInfo);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600AF9C RID: 44956 RVA: 0x001DB1FC File Offset: 0x001D93FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueMagicLeaveScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.rogueTournCurSceneInfo_ != null)
			{
				if (this.rogueTournCurSceneInfo_ == null)
				{
					this.RogueTournCurSceneInfo = new RogueMagicCurSceneInfo();
				}
				this.RogueTournCurSceneInfo.MergeFrom(other.RogueTournCurSceneInfo);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600AF9D RID: 44957 RVA: 0x001DB264 File Offset: 0x001D9464
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600AF9E RID: 44958 RVA: 0x001DB270 File Offset: 0x001D9470
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 64U)
				{
					if (num != 98U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.rogueTournCurSceneInfo_ == null)
						{
							this.RogueTournCurSceneInfo = new RogueMagicCurSceneInfo();
						}
						input.ReadMessage(this.RogueTournCurSceneInfo);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400472A RID: 18218
		private static readonly MessageParser<RogueMagicLeaveScRsp> _parser = new MessageParser<RogueMagicLeaveScRsp>(() => new RogueMagicLeaveScRsp());

		// Token: 0x0400472B RID: 18219
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400472C RID: 18220
		public const int RogueTournCurSceneInfoFieldNumber = 12;

		// Token: 0x0400472D RID: 18221
		private RogueMagicCurSceneInfo rogueTournCurSceneInfo_;

		// Token: 0x0400472E RID: 18222
		public const int RetcodeFieldNumber = 8;

		// Token: 0x0400472F RID: 18223
		private uint retcode_;
	}
}
